import { Router } from "express";
import * as UserController from "../controllers/user.controller";
const router = Router();
router.post("/", UserController.getAllUsers);
router.get("/:id", UserController.getUserById);
router.post("/add", UserController.createUser);
router.put("/:id", UserController.updateUser);
router.delete("/:id", UserController.deleteUser);
router.post("/login", UserController.login);
export default router;
